﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    #region Using Statements

    using System;

    #endregion

    public class HTMLHeadElement : HTMLElement
    {
        #region Constructors

        internal HTMLHeadElement(Document owner)
            : base(owner, HTMLConstants.HTML_TAG_HEAD)
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// URI [IETF RFC 2396] designating a metadata profile.
        /// </summary>
        public string profile
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_PROFILE);
            }
            set
            {
                if (String.IsNullOrEmpty(value))
                    removeAttribute(HTMLConstants.HTML_ATT_PROFILE);
                else
                    setAttribute(HTMLConstants.HTML_ATT_PROFILE, value);
            }
        }

        #endregion
    }
}
